package cn.stard.pet.service.impl;

import cn.stard.pet.domain.PetDetail;
import cn.stard.pet.mapper.PetDetailMapper;
import cn.stard.pet.service.IPetDetailService;
import cn.stard.basic.service.impl.BaseServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author stard
 * @since 2022-07-16
 */
@Service
public class PetDetailServiceImpl extends BaseServiceImpl<PetDetail> implements IPetDetailService {
@Autowired
private PetDetailMapper petDetailMapper;
    // 根据id查询数据,并且获取到该对象
    @Override
    public PetDetail loadByPetId(Long id) {
        petDetailMapper.loadByPetId(id);
        return  petDetailMapper.loadByPetId( id);
    }
}
